package com.bawei.module_mine.applyfor

import com.bawei.module_mine.api.MineApi
import com.bawei.module_mine.api.MineModel
import kotlinx.coroutines.flow.flow
import javax.inject.Inject

class ApplyForRepository @Inject constructor() {
    @Inject
    @MineModel.SignApi
    lateinit var mineApi: MineApi
    //车位申请
    fun parkingApply() = flow {
        emit(mineApi.parkingApply(1))
    }
    //访客申请
    fun visitApply() = flow {
        emit(mineApi.visitApply())
    }
    //维修申请
    fun repairApply() = flow {
        emit(mineApi.repairApply())
    }
    //巡更申请
    fun inspectionApply() = flow {
        emit(mineApi.inspectionApply())
    }
}